home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr05 / att33all.zip / ALLTHETI.FRM < prev    next >
Text File  |  1995-01-29  |  22KB  |  776 lines

  1. VERSION 2.00
  2. Begin Form AllTheTime 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H00C0C0C0&
  5.    BorderStyle     =   0  'None
  6.    Caption         =   "AllTheTime"
  7.    ClientHeight    =   0
  8.    ClientLeft      =   -420
  9.    ClientTop       =   -120
  10.    ClientWidth     =   936
  11.    ClipControls    =   0   'False
  12.    ControlBox      =   0   'False
  13.    FillColor       =   &H00C0C0C0&
  14.    FillStyle       =   0  'Solid
  15.    FontBold        =   0   'False
  16.    FontItalic      =   0   'False
  17.    FontName        =   "MS Sans Serif"
  18.    FontSize        =   7.8
  19.    FontStrikethru  =   0   'False
  20.    FontUnderline   =   0   'False
  21.    Height          =   444
  22.    Icon            =   ALLTHETI.FRX:0000
  23.    Left            =   -480
  24.    LinkTopic       =   "Form2"
  25.    MaxButton       =   0   'False
  26.    MinButton       =   0   'False
  27.    ScaleHeight     =   0
  28.    ScaleWidth      =   936
  29.    Top             =   -504
  30.    Visible         =   0   'False
  31.    Width           =   1056
  32.    Begin TextBox Text1 
  33.       Height          =   288
  34.       Left            =   2016
  35.       LinkTimeout     =   -1
  36.       TabIndex        =   5
  37.       Top             =   624
  38.       Visible         =   0   'False
  39.       Width           =   372
  40.    End
  41.    Begin PictureClip MoonSun 
  42.       Cols            =   5
  43.       Location        =   "960,1920,2256,5436"
  44.       Picture         =   ALLTHETI.FRX:0302
  45.       Rows            =   10
  46.    End
  47.    Begin SSFrame Frame3D1 
  48.       ForeColor       =   &H00000000&
  49.       Height          =   195
  50.       Left            =   15
  51.       TabIndex        =   4
  52.       Top             =   8160
  53.       Width           =   135
  54.       Begin SSOption Option3D1 
  55.          Alignment       =   1  'Right Justify
  56.          Caption         =   "&3 - Bottom right"
  57.          ForeColor       =   &H00000000&
  58.          Height          =   255
  59.          Index           =   2
  60.          Left            =   1920
  61.          TabIndex        =   2
  62.          Top             =   960
  63.          Value           =   -1  'True
  64.          Width           =   1575
  65.       End
  66.       Begin SSOption Option3D1 
  67.          Caption         =   "&5 - Elsewhere"
  68.          ForeColor       =   &H00000000&
  69.          Height          =   255
  70.          Index           =   4
  71.          Left            =   1530
  72.          TabIndex        =   6
  73.          TabStop         =   0   'False
  74.          Top             =   615
  75.          Width           =   1575
  76.       End
  77.       Begin SSOption Option3D1 
  78.          Caption         =   "&1 - Upper left"
  79.          ForeColor       =   &H00000000&
  80.          Height          =   255
  81.          Index           =   0
  82.          Left            =   105
  83.          TabIndex        =   0
  84.          TabStop         =   0   'False
  85.          Top             =   255
  86.          Width           =   1455
  87.       End
  88.       Begin SSOption Option3D1 
  89.          Alignment       =   1  'Right Justify
  90.          Caption         =   "&2 - Upper right"
  91.          ForeColor       =   &H00000000&
  92.          Height          =   255
  93.          Index           =   1
  94.          Left            =   1920
  95.          TabIndex        =   1
  96.          TabStop         =   0   'False
  97.          Top             =   270
  98.          Width           =   1575
  99.       End
  100.       Begin SSOption Option3D1 
  101.          Caption         =   "&4 - Bottom left"
  102.          ForeColor       =   &H00000000&
  103.          Height          =   255
  104.          Index           =   3
  105.          Left            =   120
  106.          TabIndex        =   3
  107.          TabStop         =   0   'False
  108.          Top             =   960
  109.          Width           =   1575
  110.       End
  111.    End
  112.    Begin Image WarningSign 
  113.       Height          =   240
  114.       Left            =   1200
  115.       Top             =   30
  116.       Width           =   300
  117.    End
  118.    Begin Image WRed 
  119.       Height          =   240
  120.       Left            =   0
  121.       Top             =   1860
  122.       Width           =   300
  123.    End
  124.    Begin Image Wyellow 
  125.       Height          =   240
  126.       Left            =   0
  127.       Top             =   1560
  128.       Width           =   300
  129.    End
  130.    Begin Image WGreen 
  131.       Height          =   240
  132.       Left            =   0
  133.       Top             =   1260
  134.       Width           =   300
  135.    End
  136.    Begin Image Delta 
  137.       Height          =   195
  138.       Left            =   795
  139.       Top             =   30
  140.       Width           =   195
  141.    End
  142.    Begin Image StopWatch 
  143.       Height          =   195
  144.       Left            =   570
  145.       Top             =   30
  146.       Width           =   195
  147.    End
  148.    Begin Image PrtStatus 
  149.       Height          =   240
  150.       Left            =   510
  151.       Top             =   10005
  152.       Width           =   300
  153.    End
  154.    Begin Image PrtInactive 
  155.       Height          =   240
  156.       Left            =   510
  157.       Top             =   10080
  158.       Width           =   285
  159.    End
  160.    Begin Image PrtActive 
  161.       Height          =   240
  162.       Left            =   510
  163.       Top             =   10080
  164.       Width           =   300
  165.    End
  166.    Begin Image Picture1 
  167.       Height          =   225
  168.       Left            =   30
  169.       Top             =   30
  170.       Width           =   240
  171.    End
  172.    Begin Image MoonPic 
  173.       Height          =   192
  174.       Left            =   300
  175.       Top             =   30
  176.       Width           =   192
  177.    End
  178.    Begin Image SeasonPic 
  179.       Height          =   192
  180.       Left            =   4080
  181.       Top             =   30
  182.       Width           =   192
  183.    End
  184. End
  185. 'DefInt A-Z
  186. Const GroupFauxCompilerDirective = False
  187.  
  188. Sub Delta_Click ()
  189. SoundABorted = True
  190. End Sub
  191.  
  192. Sub Delta_DblClick ()
  193. SoundABorted = True
  194. 'DblCFlag% = True
  195.  
  196. End Sub
  197.  
  198. Sub Delta_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  199. Dim M3&
  200. 'Delta.Picture = MoonSun.GraphicCell(46)
  201. Call Form_MouseDown(Button, Shift, X, Y)
  202. If Button = 1 Then 'Left button
  203.    If gDeltaRunning = 2 Then
  204.       'start timer
  205.       gResUser = GetFreeSystemResources(2) - (gStoppedResUser - gResUser)
  206.       gResGDI = GetFreeSystemResources(1) - (gStoppedResGDI - gResGDI)
  207.       gRes = GetFreeSystemResources(0) - (gStoppedRes - gRes)
  208.       gTotMem = GetTotalMem() - (gStoppedTotMem - gTotMem)
  209.  
  210.       gBlkMem = GetBlockMem(gFreeableRAM, M3) - (gStoppedBlkMem - gBlkMem)
  211.       gFreeRAM = M3 - (gStoppedFreeRam - gFreeRAM)
  212.       Delta.Picture = MoonSun.GraphicCell(47)
  213.       LastTime& = 0
  214.       'FontChangedNotYetSized = True
  215.       gDeltaRunning = 1
  216.    Else
  217.       'stop timer
  218.       gStoppedResUser = GetFreeSystemResources(2)
  219.       gStoppedResGDI = GetFreeSystemResources(1)
  220.       gStoppedRes = GetFreeSystemResources(0)
  221.       gStoppedTotMem = GetTotalMem()
  222.       gStoppedBlkMem = GetBlockMem(gStoppedFreeAbleRam, gStoppedFreeRam)
  223.       LastTime& = 0
  224.       Delta.Picture = MoonSun.GraphicCell(48)
  225.       gDeltaRunning = 2
  226.    End If
  227. End If
  228. If Button = 2 Then
  229.       gResUser = GetFreeSystemResources(2)
  230.       gResGDI = GetFreeSystemResources(1)
  231.       gRes = GetFreeSystemResources(0)
  232.       gTotMem = GetTotalMem()
  233.       gBlkMem = GetBlockMem(gFreeableRAM, gFreeRAM)
  234.  
  235.       gStoppedResUser = GetFreeSystemResources(2)
  236.       gStoppedResGDI = GetFreeSystemResources(1)
  237.       gStoppedRes = GetFreeSystemResources(0)
  238.       gStoppedTotMem = GetTotalMem()
  239.       gStoppedBlkMem = GetBlockMem(gStoppedFreeAbleRam, gStoppedFreeRam)
  240.       LastTime& = 0
  241. End If
  242.  
  243.  
  244. Exit Sub
  245.  
  246. If (gDeltaRunning = 0) Or (gDeltaRunning = 2 And Button = 2) Then
  247.    If (gDeltaRunning = 0) Then
  248.       gResUser = GetFreeSystemResources(2)
  249.       gResGDI = GetFreeSystemResources(1)
  250.       gRes = GetFreeSystemResources(0)
  251.       gTotMem = GetTotalMem()
  252.       gBlkMem = GetBlockMem(gFreeableRAM, gFreeRAM)
  253.    Else
  254.       gResUser = GetFreeSystemResources(2) - (gStoppedResUser - gResUser)
  255.       gResGDI = GetFreeSystemResources(1) - (gStoppedResGDI - gResGDI)
  256.       gRes = GetFreeSystemResources(0) - (gStoppedRes - gRes)
  257.       gTotMem = GetTotalMem() - (gStoppedTotMem - gTotMem)
  258.       gBlkMem = GetBlockMem(gFreeableRAM, gFreeRAM) - (gStoppedBlkMem - gBlkMem)
  259.    End If
  260.    gDeltaRunning = 1
  261.    Delta.Picture = MoonSun.GraphicCell(47)
  262.    LastTime& = 0
  263. Else
  264.    If gDeltaRunning = 1 Then
  265.       gDeltaRunning = 2
  266.       gStoppedResUser = GetFreeSystemResources(2)
  267.       gStoppedResGDI = GetFreeSystemResources(1)
  268.       gStoppedRes = GetFreeSystemResources(0)
  269.       gStoppedTotMem = GetTotalMem()
  270.       gStoppedBlkMem = GetBlockMem(gStoppedFreeAbleRam, gStoppedFreeRam)
  271.       LastTime& = 0
  272.       Delta.Picture = MoonSun.GraphicCell(48)
  273.    Else
  274.       Delta.Picture = MoonSun.GraphicCell(45)
  275.       gDeltaRunning = 0
  276.       gResUser = 0
  277.       gResGDI = 0
  278.       gRes = 0
  279.       gTotMem = 0
  280.       gBlkMem = 0
  281.       gFreeRAM = 0
  282.       gFreeableRAM = 0
  283.       LastTime& = 0
  284.    End If
  285. End If
  286.  
  287.  
  288. End Sub
  289.  
  290. Sub Delta_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  291. Call Form_MouseMove(Button, Shift, X, Y)
  292. End Sub
  293.  
  294. Sub Delta_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  295. Call Form_MouseUp(Button, Shift, X, Y)
  296. End Sub
  297.  
  298. Sub Form_Activate ()
  299.     'MsgBox ("Activate...")
  300.       If AllTheTime.Left >= Screen.Width - 15 Then
  301.          AllTheTime.Left = AllTheTime.Tag
  302.       End If
  303. End Sub
  304.  
  305. '
  306. '
  307. Sub Form_Click ()
  308. SoundABorted = True
  309. CFlag% = True
  310. End Sub
  311.  
  312. Sub Form_DblClick ()
  313. DblCFlag% = True
  314. End Sub
  315.  
  316. Sub Form_GotFocus ()
  317.       If AllTheTime.Left >= Screen.Width - 15 Then
  318.          AllTheTime.Left = AllTheTime.Tag
  319.       End If
  320. '
  321. 'Settings.SetFocus
  322. End Sub
  323.  
  324. Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
  325.     Select Case KeyCode
  326.         Case Alt_R      'Rotate
  327.             For I% = 0 To 4
  328.             If gOption3D1(I%) Then S% = I%
  329.             Next I%
  330.             gOption3D1((S% + 1) Mod 5) = True
  331.             gOption3D1(S%) = False
  332.             KeyCode = 0
  333.             Shift = 0
  334.             Call PositionATT
  335.  
  336.         Case Alt_T      'Turn off
  337. '            KeyCode = 0
  338. '            Shift = 0
  339. '            AllTheTime.Visible = Not AllTheTime.Visible
  340.    End Select
  341.  
  342. End Sub
  343.  
  344. Sub Form_KeyPress (KeyAscii As Integer)
  345.     If KeyAscii = Asc("X") Then
  346.        'DeleteMenus
  347.        FinalProcessing
  348.        End 'Program
  349.     End If
  350. End Sub
  351.  
  352. Sub Form_Load ()
  353. If hSubMenus <> 0 Then
  354.    MsgBox "Loading twice..."
  355.    End
  356. End If
  357.  
  358. SeasonDescArr$(0) = "Fall"
  359. SeasonDescArr$(1) = "Winter"
  360. SeasonDescArr$(2) = "Spring"
  361. SeasonDescArr$(3) = "Summer"
  362. MoonDescArr$(0) = "Full moon"
  363. MoonDescArr$(1) = "Waning, full moon"
  364. MoonDescArr$(2) = "Third quarter"
  365. MoonDescArr$(3) = "Waning, third quarter"
  366. MoonDescArr$(4) = "New moon"
  367. MoonDescArr$(5) = "Waxing, new moon"
  368. MoonDescArr$(6) = "First quarter"
  369. MoonDescArr$(7) = "Waxing, first quarter"
  370. TODDescArr$(0) = "morning"
  371. TODDescArr$(1) = "afternoon"
  372. TODDescArr$(2) = "evening"
  373. TODDescArr$(3) = "night"
  374.  
  375.  
  376. If GroupFauxCompilerDirective Then
  377.    Text1.LinkMode = 0
  378.    Text1.LinkTopic = "Progman|Progman"
  379.    Text1.LinkItem = "Groups"
  380.    Text1.LinkMode = 2
  381.    Text1.LinkRequest
  382.  
  383.    hGroupMenu = CreatePopUpMenu()
  384.    T% = AppendMenu(hMainMenu, MF_SEPARATOR, IDM_ITEMS, "-")
  385.    
  386.    Groups$ = Text1.Text
  387.    While Groups$ <> ""
  388.       cPos = InStr(Groups$, Chr(13))
  389.       OneGroup$ = Left$(Groups$, cPos - 1)
  390.       Groups$ = Mid$(Groups$, cPos + 2, 30000)
  391.       hSubMenus = hSubMenus + 1
  392.       ReDim Preserve hSubMenu(hSubMenus)
  393.       hSubMenu(hSubMenus) = CreatePopUpMenu()   'popup
  394.   
  395.       Text1.LinkItem = OneGroup$
  396.       Text1.LinkMode = 2
  397.       Text1.LinkRequest
  398.  
  399.       Progs$ = Text1.Text
  400.       FirstOne = True
  401.       While Progs$ <> ""
  402.          cPos = InStr(Progs$, Chr(13))
  403.          OneProg$ = Left$(Progs$, cPos - 1)
  404.          Progs$ = Mid$(Progs$, cPos + 2, 30000)
  405.          PName$ = Mid$(OneProg$, 2, 30000)
  406.          PName$ = Mid$(PName$, 1, InStr(PName$, Chr(34)) - 1)
  407.          If FirstOne Then
  408.             FirstOne = False
  409.          Else
  410.             T% = AppendMenu(hSubMenu(hSubMenus), MF_STRING, IDM_ITEMS + hSubMenus, PName$)
  411.          End If
  412.       Wend
  413.  
  414.       T% = AppendMenu(hGroupMenu, MF_POPUP, hSubMenu(hSubMenus), OneGroup$)
  415.    Wend
  416.  
  417. T% = AppendMenu(hMainMenu, MF_POPUP, hGroupMenu, "Groups...")
  418. End If
  419.  
  420. PrtActive.Picture = MoonSun.GraphicCell(20)
  421. PrtInActive.Picture = MoonSun.GraphicCell(21)
  422. PrtStatus.Picture = MoonSun.GraphicCell(21)
  423. StopWatch.Picture = MoonSun.GraphicCell(30)
  424. Delta.Picture = MoonSun.GraphicCell(47)
  425. Picture1.Picture = MoonSun.GraphicCell(22)
  426.  
  427. WGreen.Picture = MoonSun.GraphicCell(43)
  428. WYellow.Picture = MoonSun.GraphicCell(44)
  429. WRed.Picture = MoonSun.GraphicCell(49)
  430. WarningSIgn.Picture = MoonSun.GraphicCell(43)
  431. End Sub
  432.  
  433. Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  434. MStartX = X
  435. MStartY = Y
  436. StartLeft = Left
  437. StartTop = Top
  438. AllowFormToMove = True
  439. Moved = True
  440. LastClickX = X
  441.  
  442. If Shift <> 1 Then
  443.    'AutoRedraw = False   '1/15
  444. Else
  445.    'Beep
  446. End If
  447. End Sub
  448.  
  449. Sub Form_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  450. If AllowFormToMove = True Then
  451.         AllTheTime.Left = AllTheTime.Left + (X - MStartX)
  452.         AllTheTime.Top = AllTheTime.Top + (Y - MStartY)
  453. End If
  454.  
  455. End Sub
  456.  
  457. Sub Form_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  458.  
  459. AllowFormToMove = False
  460. 'AutoRedraw = True '1/15
  461. If Left = StartLeft And Top = StartTop Then
  462.    Moved = False
  463. Else
  464.    PosLeft = AllTheTime.Left
  465.    PosTop = AllTheTime.Top
  466.    gOption3D1(4) = True
  467.    For I% = 0 To 3
  468.       gOption3D1(I%) = False
  469.    Next I%
  470.    Call PositionATT
  471. End If
  472. End Sub
  473.  
  474. Sub Form_Paint ()
  475. '
  476. End Sub
  477.  
  478. Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
  479. If UnloadMode = 3 Then
  480.    'DeleteMenus
  481.    FinalProcessing
  482.    End 'Program
  483. End If
  484. End Sub
  485.  
  486. Sub Form_Resize ()
  487. 'SavedVis = Visible
  488. 'Visible = False
  489. If Resizing Then Exit Sub
  490. Resizing = True
  491. If WindowState = 1 Then
  492.    Exit Sub
  493. End If
  494. Call SetTime
  495. Call SetSize
  496. Call PositionATT
  497. 'Visible = SavedVis
  498. Resizing = False
  499. End Sub
  500.  
  501. Sub MoonPic_DblClick ()
  502. SoundABorted = True
  503. MoonList.Show 1
  504. End Sub
  505.  
  506. Sub MoonPic_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  507. 'Call Form_MouseDown(Button, Shift, X, Y)
  508. 'Form1.Label1.FontName = AllTheTime.FontName
  509. 'Form1.Label1.ForeColor = AllTheTime.ForeColor
  510. 'If Form1.Label1.ForeColor = Form1.Label1.BackColor Then
  511. '   Form1.Label1.BackColor = AllTheTime.BackColor
  512. 'End If
  513. 'Form1.Label1.FontSize = AllTheTime.FontSize
  514. 'Form1.Label1.FontBold = AllTheTime.FontBold
  515. 'Form1.Label1.FontItalic = AllTheTime.FontItalic
  516. Form1.Label1.AutoSize = True
  517. If gMoonExact% Then gWaxDesc$ = ""
  518. Form1.Label1.Caption = " " + (gWaxDesc$) + MoonDesc$ + " " + SavedDat$ + " "
  519. Form1.Label1.AutoSize = False
  520. Form1.Label1.Width = Form1.Label1.Width + 60
  521. Form1.Label1.Height = Form1.Label1.Height + 60
  522. Form1.Width = Form1.Label1.Width
  523. Form1.Height = Form1.Label1.Height
  524. Form1.Label1.Left = 0
  525. Form1.Label1.Top = 0 + 15
  526. Form1.Top = AllTheTime.Top + Y - Form1.Height
  527. Form1.Left = AllTheTime.Left + MoonPic.Left + X
  528. If Form1.Top < 0 Then Form1.Top = 0
  529. If Form1.Left + Form1.Width > Screen.Width Then Form1.Left = Screen.Width - Form1.Width
  530.  
  531. 'Form1.ZOrder 0
  532. Form1.Show
  533. wOn_Top% = SetWindowPos(Form1.hWnd, -1, 0, 0, 0, 0, wFlags = &H2 Or &H1 Or &H40 Or &H10)
  534. End Sub
  535.  
  536. Sub MoonPic_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  537. Call Form_MouseMove(Button, Shift, X, Y)
  538.  
  539. End Sub
  540.  
  541. Sub MoonPic_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  542. 'Call Form_MouseUp(Button, Shift, X, Y)
  543. Unload Form1
  544.  
  545. End Sub
  546.  
  547. Sub Option3D1_Click (Index As Integer, Value As Integer)
  548. If gPositioning Then Exit Sub
  549. For I% = 0 To 4: gOption3D1(I%) = 0: Next I%
  550. gOption3D1(Index) = Value
  551. Call PositionATT
  552.  
  553. End Sub
  554.  
  555. Sub Picture1_DblClick ()
  556. Call PictureMenuMouseDown(0, 0, 0, 0)
  557. SoundABorted = True
  558. 'DblCFlag% = True
  559. End Sub
  560.  
  561. Sub Picture1_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  562. Call PictureMenuMouseDown(Button, Shift, X, Y)
  563. End Sub
  564.  
  565. Sub PrtActive_Click ()
  566. SoundABorted = True
  567. End Sub
  568.  
  569. Sub PrtActive_DblClick ()
  570. 'On Local Error Resume Next
  571. T% = Shell("PRINTMAN", 1)
  572. 'AppActivate "Print Manager"
  573. 'hActive% = GetActiveWindow()                 ' pickup it's hWnd handle
  574. 'Call SwitchToThisWindow(hActive%, True)
  575. 'On Local Error GoTo 0
  576. End Sub
  577.  
  578. Sub PrtActive_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  579. Call Form_MouseDown(Button, Shift, X, Y)
  580. End Sub
  581.  
  582. Sub PrtActive_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  583. Call Form_MouseMove(Button, Shift, X, Y)
  584. End Sub
  585.  
  586. Sub PrtActive_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  587. Call Form_MouseUp(Button, Shift, X, Y)
  588. End Sub
  589.  
  590. Sub PrtInactive_Click ()
  591. SoundABorted = True
  592. End Sub
  593.  
  594. Sub PrtInactive_DblClick ()
  595. T% = Shell("PRINTMAN", 1)
  596.  
  597. End Sub
  598.  
  599. Sub PrtInactive_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  600. Call Form_MouseDown(Button, Shift, X, Y)
  601. PrtInActive.Picture = MoonSun.GraphicCell(20)
  602. End Sub
  603.  
  604. Sub PrtInactive_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  605. Call Form_MouseMove(Button, Shift, X, Y)
  606. End Sub
  607.  
  608. Sub PrtInactive_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  609. Call Form_MouseUp(Button, Shift, X, Y)
  610. PrtInActive.Picture = MoonSun.GraphicCell(21)
  611. End Sub
  612.  
  613. Sub PrtStatus_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  614. Call Form_MouseMove(Button, Shift, X, Y)
  615. End Sub
  616.  
  617. Sub SeasonPic_Click ()
  618. SoundABorted = True
  619. End Sub
  620.  
  621. Sub SeasonPic_DblClick ()
  622. SoundABorted = True
  623. 'DblCFlag% = True
  624. End Sub
  625.  
  626. Sub SeasonPic_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  627. 'Call Form_MouseDown(Button, Shift, x, Y)
  628. 'Form1.Label1.FontName = AllTheTime.FontName
  629. 'Form1.Label1.ForeColor = AllTheTime.ForeColor
  630. 'If Form1.Label1.ForeColor = Form1.Label1.BackColor Then
  631. '   Form1.Label1.BackColor = AllTheTime.BackColor
  632. 'End If
  633. 'Form1.Label1.FontSize = AllTheTime.FontSize
  634. 'Form1.Label1.FontBold = AllTheTime.FontBold
  635. 'Form1.Label1.FontItalic = AllTheTime.FontItalic
  636.  
  637. Form1.Label1.AutoSize = True
  638. Form1.Label1.Caption = " " + SeasonDesc$ + " " + TODDesc$ + " "
  639. Form1.Label1.AutoSize = False
  640. Form1.Label1.Width = Form1.Label1.Width + 60
  641. Form1.Label1.Height = Form1.Label1.Height + 60
  642. Form1.Width = Form1.Label1.Width
  643. Form1.Height = Form1.Label1.Height
  644. Form1.Label1.Left = 0
  645. Form1.Label1.Top = 0 + 15
  646.  
  647. Form1.Top = AllTheTime.Top + Y - Form1.Height
  648. Form1.Left = AllTheTime.Left + SeasonPic.Left + X - Form1.Label1.Width
  649. 'Form1.ZOrder 0
  650. If Form1.Top < 0 Then Form1.Top = 0
  651. If Form1.Left + Form1.Width > Screen.Width Then Form1.Left = Screen.Width - Form1.Width
  652. Form1.Show
  653. wOn_Top% = SetWindowPos(Form1.hWnd, -1, 0, 0, 0, 0, wFlags = &H2 Or &H1 Or &H40 Or &H10)
  654.  
  655. End Sub
  656.  
  657. Sub SeasonPic_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  658. Call Form_MouseMove(Button, Shift, X, Y)
  659. End Sub
  660.  
  661. Sub SeasonPic_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  662. 'Call Form_MouseUp(Button, Shift, x, Y)
  663. Unload Form1
  664.  
  665. End Sub
  666.  
  667. Sub StopWatch_Click ()
  668. SoundABorted = True
  669. End Sub
  670.  
  671. Sub StopWatch_DblClick ()
  672. SoundABorted = True
  673. 'DblCFlag% = True
  674. End Sub
  675.  
  676. Sub StopWatch_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  677. Call Form_MouseDown(Button, Shift, X, Y)
  678. If Button = 1 Then 'Left button
  679.    If gTimerRunning = 2 Then
  680.       'start timer
  681.       gTime = Time - (gStoppedTime - gTime)
  682.       StopWatch.Picture = MoonSun.GraphicCell(30)
  683.       LastTime& = 0
  684.       'FontChangedNotYetSized = True
  685.       gTimerRunning = 1
  686.    Else
  687.       'stop timer
  688.       gStoppedTime = Time
  689.       LastTime& = 0
  690.       StopWatch.Picture = MoonSun.GraphicCell(25)
  691.       gTimerRunning = 2
  692.    End If
  693. End If
  694. If Button = 2 Then
  695.       gTime = Time
  696.       gStoppedTime = Time
  697.       LastTime& = 0
  698. End If
  699.  
  700. Exit Sub
  701.  
  702. If (gTimerRunning = 0) Or (gTimerRunning = 2 And Button = 2) Then
  703.    If (gTimerRunning = 0) Then
  704.       gTime = Time
  705.    Else
  706.       gTime = Time - (gStoppedTime - gTime)
  707.    End If
  708.    gTimerRunning = 1
  709.    StopWatch.Picture = MoonSun.GraphicCell(26)
  710.    gStopPic = 0
  711.    LastTime& = 0
  712. Else
  713.    If gTimerRunning = 1 Then
  714.       gTimerRunning = 2
  715.       gStoppedTime = Time
  716.       LastTime& = 0
  717.       StopWatch.Picture = MoonSun.GraphicCell(25)
  718.    Else
  719.       StopWatch.Picture = MoonSun.GraphicCell(24)
  720.       gTimerRunning = 1 'was 0
  721.       gTime = 0
  722.       LastTime& = 0
  723.       FontChangedNotYetSized = True
  724.    End If
  725. End If
  726. End Sub
  727.  
  728. Sub StopWatch_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  729. Call Form_MouseMove(Button, Shift, X, Y)
  730.  
  731. End Sub
  732.  
  733. Sub StopWatch_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  734. Call Form_MouseUp(Button, Shift, X, Y)
  735.  
  736. End Sub
  737.  
  738. Sub WarningSign_Click ()
  739. SoundABorted = True
  740. End Sub
  741.  
  742. Sub WarningSign_DblClick ()
  743. SoundABorted = True
  744. End Sub
  745.  
  746. Sub WarningSign_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  747.  
  748. Form1.Label1.AutoSize = True
  749. Form1.Label1.Caption = " " + gWarningMessage + " "
  750. Form1.Label1.AutoSize = False
  751. Form1.Label1.Width = Form1.Label1.Width + 60
  752. Form1.Label1.Height = Form1.Label1.Height + 60
  753. Form1.Width = Form1.Label1.Width
  754. Form1.Height = Form1.Label1.Height
  755. Form1.Label1.Left = 0
  756. Form1.Label1.Top = 0 + 15
  757.  
  758. Form1.Top = AllTheTime.Top + Y - Form1.Height
  759. Form1.Left = AllTheTime.Left + WarningSIgn.Left + X
  760. 'Form1.ZOrder 0
  761. If Form1.Top < 0 Then Form1.Top = 0
  762. If Form1.Left + Form1.Width > Screen.Width Then Form1.Left = Screen.Width - Form1.Width
  763. Form1.Show
  764. wOn_Top% = SetWindowPos(Form1.hWnd, -1, 0, 0, 0, 0, wFlags = &H2 Or &H1 Or &H40 Or &H10)
  765.  
  766. End Sub
  767.  
  768. Sub WarningSign_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  769. Call Form_MouseMove(Button, Shift, X, Y)
  770. End Sub
  771.  
  772. Sub WarningSign_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  773.    Unload Form1
  774. End Sub
  775.  
  776.